package com.yj.service;

import com.yj.entity.Users;
import com.yj.vo.JsonResult;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yj
 * @since 2020-08-24
 */
public interface IUsersService extends IService<Users> {

	//注册
	public JsonResult zuCe(Users user);
	
	//登录
	public JsonResult login(@Param(value = "uemail") String uemail,@Param(value = "password") String pass,HttpSession session);
	
	//更新
	public JsonResult updataUser(Users user);
	
	//头像上传
	public JsonResult upLoadImg(int uid,MultipartFile files);
	
	//页数
	public JsonResult pages();
	
	//每页数据
	public JsonResult page( int pageNum);
	
	//删除
	public JsonResult delUser(int uid);
	
}
